package ws;

public class LogSOAProxy implements ws.LogSOA {
  private String _endpoint = null;
  private ws.LogSOA logSOA = null;
  
  public LogSOAProxy() {
    _initLogSOAProxy();
  }
  
  public LogSOAProxy(String endpoint) {
    _endpoint = endpoint;
    _initLogSOAProxy();
  }
  
  private void _initLogSOAProxy() {
    try {
      logSOA = (new ws.LogSOAServiceLocator()).getLogSOA();
      if (logSOA != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)logSOA)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)logSOA)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (logSOA != null)
      ((javax.xml.rpc.Stub)logSOA)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public ws.LogSOA getLogSOA() {
    if (logSOA == null)
      _initLogSOAProxy();
    return logSOA;
  }
  
  public void main(java.lang.String[] args) throws java.rmi.RemoteException, org.orm.PersistentException{
    if (logSOA == null)
      _initLogSOAProxy();
    logSOA.main(args);
  }
  
  public java.lang.String verLog() throws java.rmi.RemoteException, org.orm.PersistentException{
    if (logSOA == null)
      _initLogSOAProxy();
    return logSOA.verLog();
  }
  
  public java.lang.String ingresarLog(java.lang.String json) throws java.rmi.RemoteException, org.orm.PersistentException{
    if (logSOA == null)
      _initLogSOAProxy();
    return logSOA.ingresarLog(json);
  }
  
  
}